package com.jt9003.service.impl;

import com.jt9003.dao.User_typeMapper;
import com.jt9003.pojo.User_type;
import com.jt9003.service.User_typeService;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;
import java.util.List;
@Service
public class User_typeServiceImpl implements User_typeService {
    @Resource
    private User_typeMapper user_typeMapper;

    @Override
    public int insertUserType(String roleName, String roleExplain) {
        int i=user_typeMapper.insertUserType(roleName, roleExplain);
        return i;
    }

    @Override
    public int deleteUserTypeById(int roleId) {
        int i=user_typeMapper.deleteUserTypeById(roleId);
        return i;
    }

    @Override
    public int updateUserTypeById(User_type user_type) {
        int i=user_typeMapper.updateUserTypeById(user_type);
        return i;
    }

    @Override
    public int updateUserTypeStateById(User_type user_type) {
        int i=user_typeMapper.updateUserTypeStateById(user_type);
        return i;
    }

    @Override
    public List<User_type> selectUserTypeByNameOrPinyinInitials(String roleName, Integer start, Integer limit) {
       List<User_type> i=user_typeMapper.selectUserTypeByNameOrPinyinInitials(roleName, start, limit);
        return i;
    }

    @Override
    public int getUserTypeCountByResult(String roleName) {
        int i=user_typeMapper.getUserTypeCountByResult(roleName);
        return i;
    }

    @Override
    public List<User_type> selectUserTypeList(Integer start, Integer limit) {
        List<User_type> i=user_typeMapper.selectUserTypeList(start, limit);
        return i;
    }

    @Override
    public int deleteUserTypesById(List<Integer> idList) {
        int i=user_typeMapper.deleteUserTypesById(idList);
        return i;
    }

    @Override
    public int getUserTypeCount() {
        int i=user_typeMapper.getUserTypeCount();
        return i;
    }
}
